package 设计模式.SimpleFactory;

public class Train extends Traffic {
    private int cc;//车次
    private int js;//节数

    public int getCc() {
        return cc;
    }

    public void setCc(int cc) {
        this.cc = cc;
    }

    public int getJs() {
        return js;
    }

    public void setJs(int js) {
        this.js = js;
    }

   public void transform(){
        System.out.println("火车运输：功率"+getGl()+",载重："+getZz());
   }
}
